package com.temi.demo;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

import com.pubnub.api.PNConfiguration;
import com.pubnub.api.PubNub;
import com.pubnub.api.callbacks.SubscribeCallback;
import com.pubnub.api.enums.PNStatusCategory;
import com.pubnub.api.models.consumer.PNStatus;
import com.pubnub.api.models.consumer.pubsub.PNMessageResult;
import com.pubnub.api.models.consumer.pubsub.PNPresenceEventResult;
import com.temi.demo.net.PubNubManager;

import java.util.Arrays;

/**
 * Created by coco on 2018/6/26.
 */

public class MyApplication extends Application {

    @SuppressLint("StaticFieldLeak")
    public static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = getApplicationContext();

        PubNubManager.getInstance()
                .initPubNub()
                .addSubscribeListener()
                .subscribeMessage("test");
    }

}
